package com.huyn.baseframework.dynamicload;

import android.graphics.Bitmap;
import android.view.View;

import com.android.volley.Response;
import com.huyn.baseframework.model.Category;
import com.huyn.baseframework.model.ChannelDetail;
import com.huyn.baseframework.share.ShareModule;
import com.ryg.dynamicload.internal.DLIntent;

import java.util.HashMap;

/**
 * Created by huyaonan on 16/10/10.
 */
public interface DLBridge {

    public static final String ITEM_CLAZZ = "ITEM_CLAZZ";
    public static final String ITEM_TYPE = "ITEM_TYPE";
    public static final String ITEM_CHANNEL = "ITEM_CHANNEL";

    public void onClickToVideo(ChannelDetail channelDetail);
    public void onClickToVideo(ChannelDetail channelDetail, Category category);
    public void onClickToWap(String title, String url, boolean post);
    public void reportUmengEvent(String id, String value);
    public void openPluginActivity(DLIntent intent);
    public boolean isUserLogin();
    public void doUserLogin();
    public void loginByChannel(int channel);
    public void doShare(ShareModule shareModule);
    public void shareWeiboVideo(String url, String content, Bitmap bitmap);
    public void shareWeiboImg(String path, String content);
    public boolean isWxInstalled();
    public void exeHttpRequest(HashMap<String, String> params, Class modelClass, String TAG, Response.Listener listener);
    public View getRootView();
    public void tooglePush();
    public boolean isPushOn();
    public void showShareLayout(OnShareChannelSelected selector);
    public void registToReceiveKeyBackGroup(CanCloseLayout layout);
    public void onReady();

}
